package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterSuggestDao;
import com.vf.admin.miaodong.entity.AppSuggest;
import com.vf.admin.miaodong.service.AfterSuggestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author anxiang
 * @version 1.0.0
 * @ClassName AfterSuggestServiceImpl.java
 * @Description 建议
 * @createTime 2021年07月23日 09:44:00
 */

@Service
public class AfterSuggestServiceImpl implements AfterSuggestService {

    @Autowired
    AfterSuggestDao afterSuggestDao;

    /**
     * 新增或更新
     * @param appSuggest
     */
    @Override
    public void saveOrUpdate(AppSuggest appSuggest) {
        afterSuggestDao.saveOrUpdate(appSuggest);
    }

    /**
     * 综合查询
     * @param paramap
     * @param splitPageBean
     * @return
     */
    @Override
    public List<AppSuggest> findList(Map<String, Object> paramap, SplitPageBean splitPageBean) {
        return afterSuggestDao.findList(paramap, splitPageBean);
    }

    /**
     * 删除
     * @param id
     */
    @Override
    public void delete(Integer id) {
        afterSuggestDao.delete(id);
    }
}